#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<stdlib.h>
#include<time.h>
#include"sort.h"
//#include"test1.h"

int testsort()
{
	srand(time(NULL));
	const N = 100000000;
	int* a = (int*)malloc(N * sizeof(int));
	//InsertSort(a, 10);
	for (int i = 0; i < N; i++)
	{
		a[i] = rand() + 1;
	}
	int begin = clock();
	SellSort(a, N);
	int end = clock();
	
	printf("SellSort:%d\n ", end - begin);

	free(a);
	return 0;
}

void testsort1()
{
	int a[10] = { 4,5,9,7,1,3,6,10,2,8 };
	QuickSort(a,0,9);
	printa(a, 10);
}


//void test1()
//{
//	
//	//char a[5] = { 'h','e','l','l','o' };
//	int a[5] = { 1,2,3,4,6 };
//	t1(a);
//	t2(a);
//	t1(ch);
//	t2(ch);
//}
int main()
{
	//test1();
	testsort1();
	return 0;
}
